package com.itheima.dao;

import com.itheima.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Description
 * @author HY
 * @version 2/11/2020
 */
public interface RoleMapper {

    List<Integer> getMenus(@Param("roleId") Integer roleId);

    List<Role> findPage(@Param("queryString") String queryString);

    void add(Role role);

    void setRoleAndPermission(@Param("batchParams") List<Map> batchParams);

    void setRoleAndMenu(@Param("batchParams")List<Map> batchParams);

    Role findById(@Param("id")Integer id);

    void editEssentialById(Role role);

    Integer deleteRoteById(@Param("id")Integer id);
}
